package com.itheima.stock.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 添加角色和角色关联权限接受数据对象
 */
@ApiModel(description = "添加角色和角色关联权限接受数据对象")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateRoleVo {

    /**
     * 角色id
     */
    private Long id;

    /**
     * 关联名称
     */
    @ApiModelProperty(value = "关联名称", position = 1)
    private String name;

    /**
     * 关联描述
     */
    @ApiModelProperty(value = "关联描述", position = 2)
    private String description;

    /**
     * 关联的角色信息
     */
    @ApiModelProperty(value = "关联的角色信息", position = 3)
    private List<Long> permissionsIds;
}
